package org.wei.p2p.consumer.agent;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.wei.p2p.api.account.model.AccountDTO;
import org.wei.p2p.api.account.model.AccountRegisterDTO;
import org.wei.p2p.common.domain.RestResponse;

/**
 * @author wei
 * @date 2022/5/2 23:05
 */
@FeignClient(value = "account-service")
public interface AccountApiAgent {
    /**
     * 用户注册
     * @param accountRegisterDTO
     * @return
     */
    @PostMapping(value = "/l/accounts")
    RestResponse<AccountDTO> register(@RequestBody AccountRegisterDTO accountRegisterDTO);
}
